package com.fa4j.system.account.repository;

import com.fa4j.common.data.repository.BaseRepository;
import com.fa4j.system.account.model.AccountPassword;
import com.fa4j.system.account.model.AccountPasswordType;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Optional;

/**
 * 账号密码 持久化接口
 *
 * @since 2025-05-06 16:16:26
 */
public interface AccountPasswordRepository extends BaseRepository<AccountPassword> {

    Optional<AccountPassword> findByAccountIdAndType(Long accountId, AccountPasswordType type);

    List<AccountPassword> queryByBetweenExpireTime(LocalDateTime start, LocalDateTime end, Long minId, int size);
}
